package com.yms.yms.common;

import com.yms.yms.utils.StatusCodeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class BaseResponse {
    private int code;
    private String msg;
    private Object data;

    public BaseResponse(StatusCodeEnum status, Object data) {
        code = status.getCode();
        msg = status.getMsg();
        this.data = data;
    }
}
